package com.nnnu.orange.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "orange.jwt")
public class JwtProperties {


    /**
     * 管理端
     */
    private String adminSecretKey;
    private long adminTtl;

    /**
     * 用户端
     */
    private String userSecretKey;
    private long userTtl;

    private String tokenName = "Authorization";
}
